package com.moleq.service;

import android.content.Context;

import com.moleq.db.DatabaseHelper;
import com.moleq.device.DeviceSettingService;

public class ServiceManager {

	private static ServiceManager instance;
	public BottleSettingService mBottleSettingService;
	public PosSettingService mPosSettingService;
	public TaxSettingService mTaxSettingService;
	public DeviceSettingService mDeviceSettingService;
	public ItemPicService mPicService;
	public DepartmantService mDepartmantService;
	public MixMatchSettingService mMixMatchSettingService;
	public MixMatchService mMixMatchService;
	public ItemTareService mItemTareService;
	public TareSettingService mTareSettingService;
		
	public PriceService mPriceService;
	public PinPadService mPinPadService;
	public PosLineItemService mPosLineItemService;
	public PosLineCouponService mPosLineCouponService;
	public PosLineTaresService mPosLineTaresService;
	public AgeSettingService mAgeSettingService;
	public PosTrnsService mPosTrnsService;
	public ReceiptService mReceiptService;
	public PosEJService mPosEJService;
	public UsersService mUsersService;
	public DeptSalesRptService mDeptSalesRptService;
	public FixedTotalRptService mFixedTotalRptService;
	public GroupSalesRptService mGroupSalesRptService;
	public PluSalesRptService mPluSalesRptService;
	public ItemDiscountSettingService mDiscountSettingService;
	public CouponSettingService mCouponSettingService;
	public PosLineDiscntService mPosLineDiscntService;
	public MultiTareSalesRptService mMultiTareSalesRptService;
	public FreeFuncRptService mFreeFuncRptService;
	public ProductService mProductService;
	public FlipChartService mFlipChartService;
	public GroupSettingService mGroupSettingService;
	public FunctionService mFunctionService;
	public FunctionService mInventoryFunctionService;
	public ItemSettingService mItemSettingService;
	public ScaleService mScaleService;
	public ScannerService mScannerService;
	public SelectionService mSelectionService;
	public NetWorkSettingService mNetWorkSettingService;
	public StoreService mStoreService;
	public StatesService mStatesService;
	public CustomerSettingService mCustomerSettingService;
	public SubDepartmantService mSubDepartmantService;
	public FreeFuncService mFreeFuncService;
	public GlobalDiscountSettingService mGlobalDiscountSettingService;
	public FunctionPanelService mFunctionPanelService;
	public ItemPicService mItemPicService;
	public InventorySettingService mInventorySettingService;
	public NetWTService mNetWTService;
	public ItemSalesService mItemSalesService;
	public PosTenderService mPosTenderService;
	public PosLineCvvWicService mPosLineCvvWicService;
	public PrinterSettingService mPrinterSettingService;
	public RoundingSettingService mRoundingSettingService;
	public PoslineTenderService mPoslineTenderService;
	public DvrSettingService mDvrSettingService;
	public VdrCouponService mVdrCouponService;
	public TenderSignatureService mTenderSignatureService;
	public MultCouponSettingService mMultCouponSettingService;
	public RegKeyService mRegKeyService;
	public ItemDiscountSettingService mItemDiscountSettingService;
	
	public static ServiceManager getInstance() {
		if (instance == null) {
			instance = new ServiceManager();
		}
		return instance;
	}
	
	public void buildAllService(Context shareContext,Context shareItyContext){
		mBottleSettingService = new BottleSettingService(shareContext);
		mPosSettingService = new PosSettingService(shareContext);
		mTaxSettingService = new TaxSettingService(shareContext);
		mDeviceSettingService = new DeviceSettingService(shareContext);
		mPicService = new ItemPicService(shareContext);
		mDepartmantService = new DepartmantService(shareContext);
		mMixMatchSettingService = new MixMatchSettingService(shareContext);
		mMixMatchService = new MixMatchService(shareContext);
		mItemTareService = new ItemTareService(shareContext);
		mTareSettingService = new TareSettingService(shareContext);
		mPriceService = new PriceService(shareContext);
		mPinPadService = new PinPadService(shareContext);
		mPosLineItemService = new PosLineItemService(shareContext);
		mPosLineCouponService = new PosLineCouponService(shareContext);
		mPosLineTaresService = new PosLineTaresService(shareContext);
		mAgeSettingService = new AgeSettingService(shareContext);
		mPosTrnsService = new PosTrnsService(shareContext);
		mReceiptService = new ReceiptService(shareContext);
		mPosEJService = new PosEJService(shareContext);
		mPosLineDiscntService = new PosLineDiscntService(shareContext);
		mDeptSalesRptService = new DeptSalesRptService(shareContext);
		mFixedTotalRptService = new FixedTotalRptService(shareContext);
		mGroupSalesRptService = new GroupSalesRptService(shareContext);
		mPluSalesRptService = new PluSalesRptService(shareContext);
		mDiscountSettingService = new ItemDiscountSettingService(shareContext);
		mCouponSettingService = new CouponSettingService(shareContext);
		mMultiTareSalesRptService = new MultiTareSalesRptService(shareContext);
		mFreeFuncRptService = new FreeFuncRptService(shareContext);
		
		mProductService = new ProductService(shareContext);
		mFlipChartService = new FlipChartService(shareContext);
		mGroupSettingService = new GroupSettingService(shareContext);
	    mUsersService = new UsersService(shareContext);
	    mFunctionService  = new FunctionService(shareContext);
	    mInventoryFunctionService  = new FunctionService(shareItyContext,DatabaseHelper.STOCKDB_NAME);
	    mItemSettingService = new ItemSettingService(shareContext);
		mScaleService = new ScaleService(shareContext);
		mScannerService = new ScannerService(shareContext);
		mSelectionService = new SelectionService(shareContext);
		mNetWorkSettingService = new NetWorkSettingService(shareContext);
		mStoreService = new StoreService(shareContext);
		mStatesService = new StatesService(shareContext);
		mCustomerSettingService = new CustomerSettingService(shareContext);
		mSubDepartmantService = new SubDepartmantService(shareContext);
		mFreeFuncService = new FreeFuncService(shareContext);
		mGlobalDiscountSettingService = new GlobalDiscountSettingService(shareContext);
		mFunctionPanelService = new FunctionPanelService(shareContext);
		mItemPicService = new ItemPicService(shareContext);
		mInventorySettingService = new InventorySettingService(shareContext);
		mNetWTService = new NetWTService(shareContext);
		mItemSalesService = new ItemSalesService(shareItyContext);
		mPosTenderService  = new PosTenderService(shareContext);
		mPosLineCvvWicService = new PosLineCvvWicService(shareContext);
		mPrinterSettingService = new PrinterSettingService(shareContext);
		mRoundingSettingService = new RoundingSettingService(shareContext);
		mPoslineTenderService = new PoslineTenderService(shareContext);
		mDvrSettingService = new DvrSettingService(shareContext);
		mVdrCouponService = new VdrCouponService(shareContext);
		mTenderSignatureService = new TenderSignatureService(shareContext);
		mMultCouponSettingService = new MultCouponSettingService(shareContext);
		mRegKeyService = new RegKeyService(shareContext);
		mItemDiscountSettingService = new ItemDiscountSettingService(shareContext);
	}
	

}
